package com.soft.jdbc.customer.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/6/6
 */
public class Customer {
    private int id;
    private String name;
    private String email;
    private Date birthday;

    public Customer() {}

    public Customer(int id, String name, String email, Date birthday) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.birthday = birthday;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return id + "\t\t" + name + "\t\t" + email + "\t\t" + new SimpleDateFormat("yyyy-MM-dd").format(birthday);
    }
}
